﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Migrator.Entities;
using System.Drawing;
using Migrator.Util;
using Migrator.Core;

namespace MigratorUI.Replayer.Commands
{
    [Serializable]
    public class MoveAgentCommand : Command
    {
        public MoveAgentCommand(params object[] args)
            : base(args)
        {            
        }

        public override void Execute()
        {
            MACAddress address = (MACAddress) args[0];
            PointF location = (PointF)args[1];

            Node node = Simulator.Instance.Internet[address];
            node.Location = location;            
        }
    }
}
